﻿package plugin.activity
{
    import com.core.*;

    public class ActivityControl extends Control
    {

        public function ActivityControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "activity")
            {
                if (param2.property == "qiandao")
                {
                    this.target.initRiLi();
                    ModelProxy.change("active", "qiandao", null);
                }
                else if (param2.property == "lingqu")
                {
                    this.target.Qdshow();
                }
                else if (param2.property == "czget")
                {
                }
                else if (param2.property == "cjget")
                {
                }
                else if (param2.property == "getcz")
                {
                }
                else if (param2.property == "getcj")
                {
                }
                else if (param2.property == "getzx")
                {
                    this.target.initZaiXian(param2.newvalue);
                }
                else if (param2.property == "show")
                {
                    this.target.showView(param2.newvalue);
                }
                else if (param2.property == "itemprice")
                {
                    this.target.itemprice(param2.newvalue);
                }
                else if (param2.property == "GetLiXian")
                {
                    this.target.GetLiXian(param2.newvalue);
                }
            }
            else if (param1.getName() == "online")
            {
                if (param2.property == "getonline")
                {
                    this.target.OnlineShow(param2.newvalue);
                }
                else if (param2.property == "Online")
                {
                    this.target.Online(param2.newvalue);
                }
            }
            return;
        }// end function

    }
}
